package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mallcloud.mall.common.core.util.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "MallInfoModel", description = "商场基本信息表")
@Data
@TableName("MALLINFO")
public class MallInfoModel implements Serializable {
    private static final long serialVersionUID = 1L;

	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "id为空", groups = {ValidGroup.Update.class})
	@TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long id;

    @ApiModelProperty(value="商场的名称")
	@TableField("mallname")
    private String name;

    @ApiModelProperty(value="LOGO图片地址")
	@TableField("logo")
    private String logo;

    @ApiModelProperty(value="商场联系电话")
	@TableField("phonenumber")
    private String contacterPhone;

    @ApiModelProperty(value="商场介绍")
	@TableField("mallcontent")
    private String content;

    @ApiModelProperty(value="所属省")
	@TableField("province")
    private String province;

    @ApiModelProperty(value="所属市")
	@TableField("city")
    private String city;

    @ApiModelProperty(value="所属县")
	@TableField("county")
    private String county;

    @ApiModelProperty(value="商场地址")
	@TableField("address")
    private String address;

    @ApiModelProperty(value="启用状态")
	@TableField("status")
    private String status;

    @ApiModelProperty(value="微信公众号UID")
	@TableField("wxuid")
    private String wxUid;

    @ApiModelProperty(value="MIS组织机构ID")
	@TableField("fmcode")
    private String organizationCode;

    @ApiModelProperty(value="商场背景图地址")
	@TableField("backgroundimage")
    private String backgroundImage;

    @ApiModelProperty(value="个人中心中的客服中心说明")
	@TableField("servicecenter")
    private String serviceCenter;

    @ApiModelProperty(value="礼品卡页面主题图片地址")
	@TableField("giftcardimage")
    private String giftCardImage;

    @ApiModelProperty(value="商场停车单位部门")
	@TableField("tcdw")
    private String parkingDept;

    @ApiModelProperty(value="商场停车单位电话")
	@TableField("tcdh")
    private String parkingPhone;

    @ApiModelProperty(value="LOGO图片宽度")
	@TableField("logow")
    private Long logoWidth;

    @ApiModelProperty(value="LOGO图片高度")
	@TableField("logoh")
    private Long logoHeight;

    @ApiModelProperty(value="LOGO所在列高度")
	@TableField("logoch")
    private Long logoColumnHeight;

    @ApiModelProperty(value="会员权益图片地址")
	@TableField("hyqytp")
    private String vipRightsImageUrl;

}
